package info.thereisonlywe.core.audio;

import java.io.File;

import javazoom.jlgui.basicplayer.BasicPlayerException;

public class AudioEssentials {

	public static float getFrameRate(File f)
	{
		AudioPlayerModel player = new AudioPlayerModel();
		try
		{
			player.open(f);
			float val = player.m_line.getFormat().getFrameRate();
			player.closeStream();
			player = null;
			return val;
		}
		catch (BasicPlayerException e)
		{
			e.printStackTrace();
		}
		return -1;
	}

}
